<template>
<div>
  <div class="jz" style="width: 1200px;min-width: 1200px">
    <div class="blue_jb pad_10_0">
      <span class="mag_l-10 xsgb" @click="pageTo(item)" v-for="(item,index) in daohang" :key="index">{{ item.tit }} > </span>
    </div>
    <div class="mag_t-20 ddisp hh">
      <div class="wh_33 mag_t-20" v-for="(item,index) in zhuantiList" :key="index">
        <div class="wh_9 jz">
          <div class="img_100">
            <img class="bor_t_5" height="200" :src="$store.state.imageUrltitle+item.image" alt="">
          </div>
          <div class="pad_20_0" style="background-color: #4672fe;">
            <div class="fz_18 ccsl_1 hh" style="color: white;height: 22px">
              <div class="wh_9 jz wz_jz">{{item.title}}111111111111111111111111</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
</template>

<script>
import {getArticle} from "@/api/api";

export default {
  name: "zhuanti",
  data(){
    return{
      daohang:[
        {tit:'首页',path:'homeList'},
        {tit:'热点专题',path:''}
      ],
      zhuantiList:[]
    }
  },
  methods:{
    pageTo(e){
      if(e.path!=''){
        this.$router.push(e.path)
      }else{
      }
    },
    zhuanti(e){
      let params = {
        cid:e
      };
      getArticle(params).then(res => {
        if (res.status==200) {
          this.zhuantiList=res.data
        } else {
          console.log(res.msg)
        }
      });
    }
  },
  mounted() {
    this.zhuanti(374)
  }
}
</script>

<style scoped>
.bor_t_5{
  border-radius: 5px 5px 0 0;
}
</style>